package com.wzt.gift.controller;

import com.wzt.gift.util.AjaxResult;
import com.wzt.gift.util.SmsUtil;
import com.wzt.gift.util.VerificationCodeUtil;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author Zenith
 * @Date 2022/10/12 19:32
 * @Version 1.0
 */
@RestController
@RequestMapping("/sms")
public class SmsVerifyCodeSendController {
    @PostMapping("/send")
    public String sendVerifyCode(String phone) {
        String code = VerificationCodeUtil.getRandomString(6);
        return code;
    }
}
